﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

//CID 0749 //2011.09.04 //Begin
namespace InfoJetSoft.Service.Entity
{
    public class SignedDataInfo
    {
        public string Name
        {
            get;
            set;
        }

        public string Mode
        {
            get;
            set;
        }

        public XmlElement ContainerElement
        {
            get;
            set;
        }

        public List<SignedElementInfo> SignatureElementList
        {
            get;
            set;
        }

        public bool HasExtraSignature
        {
            get;
            set;
        }
    }

    public class SignedElementInfo
    {
        public XmlElement SignatureElement
        {
            get;
            set;
        }

        //CID 1021 //2011.09.29 //Begin
        public SignedStatus Status
        {
            get;
            set;
        }
        //CID 1021 //2011.09.29 //End

        public string SignedBy
        {
            get;
            set;
        }

        public string SignedOn
        {
            get;
            set;
        }
    }

    //CID 1021 //2011.09.29 //Begin
    public enum SignedStatus
    { 
        Valid = 1,
        Invalid = 2,
        Error = 3,
        Revoked = 4,
        NotTrusted = 5,
        Expired = 6
    }
    //CID 1021 //2011.09.29 //End
}
//CID 0749 //2011.09.04 //End